<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddRealnameToWechatServiceAccountUsersTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::table('wechat_service_account_users', function (Blueprint $table) {
            $table->string('realname', 50)->after('nickname')->nullable()->comment('用户真实姓名');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::table('wechat_service_account_users', function (Blueprint $table) {
            $table->dropColumn('realname');
        });
    }
};